format use that file. If you created a new style file called
"mystyle.style" and you want to write the waypoints from
a GPX file named "mine.gpx" to it, you would issue a command like:
-<screen format="linespecific">gpsbabel -i gpx -f mine.gpx -o xcsv,style=mystyle.style -f mine.new</screen>
+</para>
+<para><command>gpsbabel -i gpx -f mine.gpx -o xcsv,style=mystyle.style -f mine.new</command></para>
+<para>
You might then examine <filename>mine.new</filename> to see if it met
your expectations. If not, you could continue to tweak
<filename>mystyle.style</filename> until it did, rerunning the above
#
# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:
-# NOTE: MS S&T ONLY IMPORTS DATA, IT DOESN'T EXPORT THIS ANYWHERE SO WE CAN
-# HAVE OUR WAY WITH THE FORMATTING.
+# NOTE: MS S&T ONLY IMPORTS DATA, IT DOESN'T
+# EXPORT THIS ANYWHERE SO WE CAN HAVE OUR
+# WAY WITH THE FORMATTING.
#
IFIELD SHORTNAME, "", "%s" # Name
IFIELD LAT_DECIMAL, "", "%f" # Latitude
<para>
example:
</para>
-<screen format="linespecific"> IFIELD SHORTNAME,"","%s" # (write shortname in the output file)
+<screen format="linespecific"> IFIELD SHORTNAME,"","%s"
</screen>
</section>
<para>
examples:
</para>
-<screen format="linespecific"> IFIELD DESCRIPTION,"","%s" # (write description in the output file)
+<screen format="linespecific"> IFIELD DESCRIPTION,"","%s"
</screen>
</section>
<para>
example:
</para>
-<screen format="linespecific"> IFIELD URL,"","%s" # (writes the URL in the output file)
+<screen format="linespecific"> IFIELD URL,"","%s"
</screen>
</section>
<para>
example:
</para>
-<screen format="linespecific"> IFIELD URL_LINK_TEXT,"","%s" # (writes link text in the output file)
+<screen format="linespecific"> IFIELD URL_LINK_TEXT,"","%s"
</screen>
</section>
<para>
example:
</para>
-<screen format="linespecific"> IFIELD ICON_DESCR,"","%s" # (writes link text in the output file)
+<screen format="linespecific"> IFIELD ICON_DESCR,"","%s"
</screen>
</section>
<para>
examples:
</para>
-<screen format="linespecific"> IFIELD LAT_HUMAN_READABLE,"","%c %d %f" # (writes N 31 40.000)
+<screen format="linespecific">
+ # (writes N 31 40.000)
+ IFIELD LAT_HUMAN_READABLE,"","%c %d %f"
+ # (writes "31 deg 40.000 min N")
IFIELD LAT_HUMAN_READABLE,"","%d deg %f min %c"
- # (writes "31 deg 40.000 min N")
- # Note that this string will confuse the reading routine due
- # to the letter "n" in "min" and the letter "e" in "deg."
- IFIELD LAT_HUMAN_READABLE,"","%d %d %f%c" # (writes 31 40 00.000N)
+ # Note that this string will confuse the reading routine due
+ # to the letter "n" in "min" and the letter "e" in "deg."
+ # (writes 31 40 00.000N)
+ IFIELD LAT_HUMAN_READABLE,"","%d %d %f%c"
</screen>
</section>
<para>
will do the trick just fine.
</para>
-<programlisting format="linespecific">
+<programlisting>
#!/full/path/to/perl
$INPUTFILE = @ARGV[0];
$TARGETDIR = @ARGV[1];
$FILENAME = @ARGV[2];
if (! $FILENAME) {
- print "Usage: xmap_split.pl INPUT_FILE OUTPUT_DIRECTORY FILENAME_BASE\n";
+ print "Usage: xmap_split.pl " .
+ "INPUT_FILE OUTPUT_DIRECTORY FILENAME_BASE\n";
print " (i.e. xmapl_split.pl points.wpt /tmp/points GPSB)\n";
- print " (created GPSB0001-GPSBXXXX in /tmp/points/ from points.wpt)\n";
+ print " (created GPSB0001-GPSBXXXX " .
+ " in /tmp/points/ from points.wpt)\n";
exit;
}
$lc++;
$filename = sprintf("%s/Gpsb%04d.wpt", $TARGETDIR, $lc);
- open (OUTFILE, ">$filename") || die "Cannot open $filename for write!\n";
+ open (OUTFILE, ">$filename") ||
+ die "Cannot open $filename for write!\n";
print OUTFILE $_;